import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:"/",
      name:"index",
      component:()=>import("@/views/index.vue"),

      children:[
        {
          path:"/building",
          name:"building",
          component:()=>import("@/views/building/BuildingList.vue"),
        },
        {
          path:"/AddBuildingList",
          name:"AddBuildingList",
          component:()=>import("@/views/building/AddBuildingList.vue"),
        },
      ]
    }

  ]
})

export default router
